<?php

/**
 * task module configuration.
 *
 * @package    TimeTracker
 * @subpackage task
 * @author     Your name here
 * @version    SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class taskGeneratorConfiguration extends BaseTaskGeneratorConfiguration
{
  public function getFilterForm($filters)
  {
    $form = parent::getFilterForm($filters);
    unset(
      $form['comment'],
      $form['total'],
      $form['position'],
      $form['predecessors_list']
    );

    $form->setWidget('project_id', new sfWidgetFormDoctrineChoice(array('model' => 'Project', 'add_empty' => true)));
    $form->setValidator('project_id', new sfValidatorDoctrineChoice(array('required' => false, 'model' => 'Project', 'column' => 'id')));

    return $form;
  }
}
